import subprocess

def check_process_running(process_name):
    output = subprocess.check_output(['tasklist'])
    processes = output.decode('gbk').split('\n')
    for process in processes:
        if process_name.lower() in process.lower():
            return True
    return False


if __name__ == "__main__":
    print(check_process_running("ditto.exe"))